package day03_template_method;

/**
 * @author Koizumi Sinya
 * @date 2018/11/07. 11:14
 * @edithor
 * @date
 */
public class CharDisplay extends AbstractDisplay {
    private char content;

    public CharDisplay(char content) {
        this.content = content;
    }

    @Override
    public void open() {
        System.out.print("<<");
    }

    @Override
    public void close() {
        System.out.println(">>");
    }

    @Override
    public void print() {
        System.out.print(content);
    }
}
